import type { FormRules } from "naive-ui";
import { requiredRule } from "@/utils";

export const rules: FormRules = {
  type: {
    type: "number",
    ...requiredRule("请选择菜单类型"),
  },
  title: requiredRule("请输入菜单名称"),
  name: requiredRule("请输入路由名称"),
  path: requiredRule("请输入路由路径"),
  component: requiredRule("请选择菜单组件"),
  newTab: {
    type: "boolean",
    ...requiredRule("请选择打开方式"),
  },
};
